/* responsive.css */
@media screen and (max-width: 1024px) {
    /* Tablet adjustments */
    body {
        overflow-x: hidden;
    }
    .header {
        padding: 0 20px;
    }
    .Second-Section, .Third-Section, .Eighth-Section {
        flex-direction: column;
        height: auto;
        padding: 50px 20px;
        row-gap: 40px;
    }
    .investment-sectors {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
        row-gap: 20px;
    }
    .Philosophy-Sectors {
        flex-wrap: wrap;
        row-gap: 30px;
        column-gap: 20px;
    }
    .Tenth-Section {
        grid-template-columns: 1fr;
        height: auto;
        padding: 50px 20px;
        row-gap: 40px;
    }
    .second-bottom {
        column-gap: 50px;
        justify-content: space-between;
    }
    .form {
        width: 80%;
    }
    .input-column, .inquiry-option, .textarea, .send-message {
        width: 100%;
        max-width: 400px;
    }
}

@media screen and (max-width: 768px) {
    /* Mobile adjustments */
    .header {
        display: grid;
        grid-template-areas: 
            ". logo name ."
            "desc desc controls controls";
        grid-template-columns: 1fr auto auto 1fr;
        padding: 20px;
        height: auto;
        row-gap: 15px;
        column-gap: 10px;
        align-items: center;
        background-color: rgb(13, 13, 36); /* Solid dark theme matching page brand color */
    }
    
    .Company-Info { display: contents; }
    .company-text { display: contents; }

    .bottom-logo { 
        grid-area: logo; 
        justify-self: right;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        border: 1px solid orange; /* add border if beneficial or inherit */
    }

    .Company-Name { 
        grid-area: name; 
        font-size: 15px; 
        justify-self: left; 
        margin: 0; 
        white-space: nowrap; 
        color: white;
    }

    .description { 
        grid-area: desc; 
        margin: 0; 
        font-size: 14px; 
        color: rgba(255, 255, 255, 0.7);
    }
    
    .mobile-controls { 
        grid-area: controls; 
        display: flex; 
        align-items: center; 
        justify-content: flex-end; 
        column-gap: 15px; 
    }

    .desktop-contact {
        display: none;
    }

    .nav { display: contents; }
    
    .unlist {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* shift down seamlessly past the entire header */
        left: 0;
        width: 100%;
        background-color: rgb(13, 13, 36); /* Completely opaque dropdown matching brand */
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.5);
        z-index: 3000; /* Assure layer dominance */
        row-gap: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.15); /* professional separation line */
    }

    .list a {
        color: white;
        text-align: center;
        display: block;
        font-size: 16px;
    }

    .unlist.show-menu {
        display: flex;
    }

    .menu-icon {
        display: block;
        font-size: 24px;
        color: orange;
        cursor: pointer;
    }
    
    /* Give mobile button some nicer styling */
    #mobile-contact-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .building {
        height: 60vh;
    }
    .purpose-description {
        height: 60vh;
    }
    .First-Section .real {
        width: 90%;
    }
    .success, .defining {
        font-size: 28px;
    }
    .First-Section {
        height: auto;
    }

    .Second-Section {
        padding: 50px 20px;
    }
    .firstOf-Second, .Meeting-Image {
        width: 100%;
        height: auto;
    }
    .letters {
        width: 100%;
    }
    .Sector-Division {
        padding-right: 0;
    }

    .div-vision, .div-mission {
        width: 100%;
        height: auto;
        padding: 30px 20px;
    }
    .Vision-Letter, .Mission-Letter {
        width: 100%;
    }

    .Fourth-Section {
        height: auto;
        padding: 50px 20px;
    }
    .core-values {
        flex-direction: column;
        row-gap: 40px;
        padding: 0;
        width: 100%;
    }

    .Fifth-Section {
        height: auto;
        padding: 50px 20px;
        width: 100%;
    }
    .investment-sectors {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .Sixth-Section {
        height: auto;
        padding: 50px 20px;
    }
    .Philosophy-Sectors {
        flex-direction: column;
        row-gap: 30px;
        width: 100%;
    }

    .Seventh-Section {
        height: auto;
        padding: 50px 20px;
    }
    .all-leader {
        flex-direction: column;
        row-gap: 20px;
        width: 100%;
    }
    .each-leader {
        width: 100%;
    }

    .Eighth-Section {
        padding: 50px 20px;
    }
    .connect-letter {
        width: 100%;
    }
    .form {
        width: 100%;
        height: auto;
        padding: 30px 20px;
    }
    .div-input {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        row-gap: 20px;
        align-items: center;
    }
    .nameInput {
        width: 100%;
        max-width: 400px;
    }
    .input-column, .inquiry-option, .textarea, .send-message {
        max-width: unset;
    }

    .Ninth-Section {
        padding: 50px 20px;
        height: auto;
    }
    .conclude-letter {
        width: 100%;
    }
    .div-conclude {
        flex-direction: column;
        row-gap: 15px;
        width: 90%;
    }
    .div-conclude button {
        width: 100%;
    }

    .second-bottom {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 30px;
    }
    .pd-list {
        width: 100%;
    }
}
